import { ActionType } from "../action-types";

export const additionNum = (num: number) => {
  return {
    type: ActionType.ADDITION,
    payload: num,
  };
};
export const subtractionNum = (num: number) => {
  return {
    type: ActionType.SUBTRACTION,
    payload: num,
  };
};
export const restoreNum = () => {
  return {
    type: ActionType.RESTORE,
  };
};
